<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>EduChain教育链-登录</title>
    <link href="css/login.css" rel="stylesheet" type="text/css"  />
    <link href="css/share.css" rel="stylesheet" type="text/css"  />
    <script src="/Admin/js/jquery-1.8.3.min.js"></script>
    <link rel="stylesheet" href="/Admin/layer/skin/default/layer.css">
    <script src="/Admin/layer/layer.js"></script>
    <script type="text/javascript">
        var msg = "{{Session::get('message')}}";
        //触发事件
        $(window).ready(function(){
            if(msg){
                layer.msg(msg,{
                    time:2000  //2毫秒
                });
            }
        });
    </script>
    <script language=javascript>
        function CheckForm(){
            var phone =document.form1.account.value;
            if(!(/^1[34578]\d{9}$/.test(phone))){
                alert("手机号码有误，请重填");
                document.form1.account.focus();
                return false;
            }

            if(document.form1.pwd.value.length<5){
                alert("密码错误，请重填");
                document.form1.pwd.focus();
                return false;}

            if(!/^\d+$/.test(document.form1.checknum.value)){
                alert("验证码错，请重填");
                document.form1.checknum.focus();
                return(false);}
            document.form1.toLogin.disabled="disabled";
        }
    </script>
</head>
<body id="loginBody">
<div style="margin:20px 0px 0px 20px"><a href="../"><img width="110px" height="34px" src="images/logo.png"></a></div>
<div id="loginBezel">
    <div align="center" id="loginChildTop">EduChain教育链 － 登录</div>
    <div id="loginChildBottom">
        <table cellpadding="0" cellspacing="0" width="100%" height="95%" border="0">
            <form name="form1" action="dologin" method="post" onsubmit="{return CheckForm();}">
                {{csrf_field()}}
                <tr>
                    <td align="right" width="35%"><label for="account">手机号：</label></td>
                    <td align="left" width="65%"><input autocomplete="off" type="text" id="account" maxlength="11" name="member_mobile" class="inputUP"/></td>
                </tr>
                <tr>
                    <td align="right"><label for="pwd">密　码：</label></td>
                    <td align="left"><input type="password" maxlength="16" id="pwd" name="member_passwd" class="inputUP"/></td>
                </tr>
                <tr>
                    <td align="right"><label for="checkNum">验证码：</label></td>
                    <td align="left"><input autocomplete="off" maxlength="4" type="text" name="code" id="checkNum"/>&nbsp;<span id="checkNumResult"><img src="captcha" onclick="this.src='captcha?'+Math.random()" id="getcode_num" title='' align="absmiddle"></span></td>
                </tr>
                <tr>
                    <td align="center" colspan="2"><input type="submit"　name="submit1" id="toLogin" value="登陆"/>　<span id="to">没有帐号，去<a id="toto" href="/register">注册</a></span></td>
                </tr>
            </form>
        </table>
    </div>
</div>
</body>
</html>